package com.rightsidetech.http.controller.storeApp.integralMall;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.http.aspect.Log;
import com.rightsidetech.mall.dto.request.storeApp.StoreIntegralReq;
import com.rightsidetech.mall.dto.response.storeApp.StoreIntegralResp;
import com.rightsidetech.mall.service.MallIntegralCommodityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shenyu.client.springmvc.annotation.ShenyuSpringMvcClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@ShenyuSpringMvcClient(path = "/storeApp/integral/**")
@RequestMapping("/storeApp/integral/")
@Api(tags = "门店积分商城相关")
public class IntegralMallController {

    @Resource
    private MallIntegralCommodityService mallIntegralCommodityService;

    @Log
    @GetMapping("/page")
    @ApiOperation("积分商城分页查询")
    public ResponseData<PageInfo<StoreIntegralResp>> pageIn(StoreIntegralReq req){
         return mallIntegralCommodityService.storePage(req);
    }
}
